libxl,xl: Fix two minor bugs in domain destruction
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 12 Apr 2010 16:45:26 +0000 (17:45 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 12 Apr 2010 16:45:26 +0000 (17:45 +0100)
commitb175259586a64137ca5dc55a51181eb1abedd1fb
tree6c9e6234fb9cea60ef6141675877c2602b7298ff
parente5f63f2ca9c3d437cfc717f6ccbdecf7804e6b3e
libxl,xl: Fix two minor bugs in domain destruction

* If /local/domain/<domid>/device does not exist, this is not
  necessarily an error.  It probably means the domain has been
  partially destroyed already.

* Have xl report errors from libxl_domain_destroy.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
tools/libxl/libxl_device.c
tools/libxl/xl.c